package com.shop.order.domain;

import com.vip.common.annotation.Excel;
import com.vip.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 商品对象 shop_comm
 * 
 * @author ruoyi
 * @date 2021-08-25
 */
public class ShopComm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long commId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String name;

    /** 商品种类 */
    @Excel(name = "商品种类")
    private String type;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long allNumber;

    /** 购买的数量 */
    @Excel(name = "购买的数量")
    private Long byNumber;

    /** 商品状态1.充足2.要补充3.无货 */
    @Excel(name = "商品状态1.充足2.要补充3.无货")
    private Long state;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private Long price;

    public void setCommId(Long commId) 
    {
        this.commId = commId;
    }

    public Long getCommId() 
    {
        return commId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAllNumber(Long allNumber) 
    {
        this.allNumber = allNumber;
    }

    public Long getAllNumber() 
    {
        return allNumber;
    }
    public void setByNumber(Long byNumber) 
    {
        this.byNumber = byNumber;
    }

    public Long getByNumber() 
    {
        return byNumber;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commId", getCommId())
            .append("name", getName())
            .append("type", getType())
            .append("allNumber", getAllNumber())
            .append("byNumber", getByNumber())
            .append("state", getState())
            .append("price", getPrice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
